<?php

use think\facade\Route;

Route::group('admin',function(){
    Route::resource('/category','admin.Category');
    Route::resource('/post','admin.Post');
})->middleware('check_login','admin');